Fix a leak in googledir that I introduced yesterday.
authorrobertlipe <robertlipe@gmail.com>
Mon, 24 Feb 2014 17:49:44 +0000 (17:49 +0000)
committerrobertlipe <robertlipe@gmail.com>
Mon, 24 Feb 2014 17:49:44 +0000 (17:49 +0000)
gpsbabel/googledir.cc

index 90b2d6171bd6ed2aa9bf8bc737dbfb0883c39bab..06f8b260e0dc8f3ae48563aaf0024bc93bf505dd 100644 (file)
@@ -106,7 +106,9 @@ goog_poly_e(xg_string args, const QXmlStreamAttributes*)
       utf_string utf;
       utf.is_html = 1;
       utf.utfstring = instructions;
-      routehead->rte_desc = strip_html(&utf);
+      char *s = strip_html(&utf);
+      routehead->rte_desc = s;
+      xfree(s);
       instructions = QString();
     }
   }